<template>
    <ul class="news-list">
        <li>编号：{{ query.id }}</li>
        <li>标题：{{ query.title }}</li>
        <li>内容：{{ query.summary }}</li>
    </ul>
</template>

<script lang="ts" name="Detail" setup>
import { useRoute } from 'vue-router';
import {toRefs } from 'vue';
let route = useRoute();
// console.log(route);

let {query} = toRefs(route);
</script>

<style scoped>

</style>
